home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / comunic / ace18b.zip / FON.INC < prev    next >
Text File  |  1993-12-26  |  3KB  |  99 lines

  1.  
  2.  
  3. FON_RECORD_COUNT_MAX =250
  4.  
  5. ;;
  6. ;;;sortkey bits
  7. NO_OP             Equ 0
  8. UNMARK            Equ 1
  9. QBIT              Equ 1; Qtag recordsortkey
  10. DBIT              Equ 2; Dtag recordsortkey
  11. SCRIPTBIT         Equ 4; Enable Auto logon script, Macro enabled when not SET
  12. DTAGBIT           Equ 8; Enable DTag
  13. CAPTUREBIT        Equ 16
  14. IEMSIBIT          Equ 32
  15. CAPMETHODBIT      Equ 64
  16. AUTOLBIT          Equ 128
  17. ;;
  18. DIALMODE_USEFONDIR      = 0
  19. DIALMODE_USEFONREC      = 1
  20. ;;
  21. ; The MAX LEN for each buffer includes a NUL byte. DON'T OVERWRITE IT!
  22. ;;
  23. FON_NAME_MAXLEN         = 25; 24 byte string, 1 NUL byte
  24. FON_FONNUM_MAXLEN       = 19; 18 byte string, 1 NUL byte
  25. FON_DIALPREFIX_MAXLEN   = 25; 24 byte string, 1 NUL byte
  26. FON_SCRIPTNAM_MAXLEN    = 13; 12 byte string, 1 NUL byte
  27. FON_CAPFILENAM_MAXLEN   = 13; 12 byte string, 1 NUL byte
  28. FON_USERPWD_MAXLEN      = 19;
  29. FON_ALIAS_MAXLEN        = 28;
  30. FON_ID_MAXLEN           = 12;
  31. FON_KBD_MAXLEN          = 13
  32. ;;                        ---
  33. ;;                        108 bytes
  34. Struc _fon
  35.       ;record number is some what obsolete in that AceComm
  36.       ;re numbers a FON file each time it it loaded
  37.       RecordNum         dw         1; Record number (1 - 250)
  38.       ;The MAX LEN for each buffer includes a NUL byte. DON'T OVERWRITE IT!
  39.       sysName     db FON_NAME_MAXLEN Dup (0);
  40.       sysNum      db FON_FONNUM_MAXLEN Dup (0);
  41.       DialPrefix  db FON_DIALPREFIX_MAXLEN Dup (0)
  42.       userPwd     db FON_USERPWD_MAXLEN Dup (0); System password
  43.       Scrfile     db FON_SCRIPTNAM_MAXLEN Dup (0)
  44.       CapFile     db FON_CAPFILENAM_MAXLEN Dup (0)
  45.       kbdfile     db  FON_KBD_MAXLEN  Dup (0)
  46.  
  47.       ;Table lookup value  (SIO.INC)
  48.       ; 1 (300)
  49.       ; 2 (1200)
  50.       ; 3 (2400)
  51.       ; 4 (4800)
  52.       ; 5 (9600)
  53.       ; 6 (19200)
  54.       ; 7 (38400)
  55.       ; 8 (57600)
  56.       ; 9 (115200)
  57.       tableBaud   db 3
  58.  
  59.       ;the line control byte is formated the same as it would be
  60.       ;written to the UART
  61.       ;Record linectrlbyte DLABBIT:1,BREAKBIT:1,PARITYBITS:3\
  62.       ;                               ,STOPBITS:1,DATABITS:2
  63.       LineCTRL    db 3; Parity,Stop,Data-bits (8n1) default
  64.  
  65.       termtype    db         0; Video type
  66.       LastDate    dw         0; uses DOS date
  67.       LastTime    dd         0; uses BIOS tick count
  68.       PrevCall    dw         0; ; # calls to this system
  69.       SortKey     db         0; Extra sort key
  70.       fillbyte    db         0
  71.       fileoffs    dw         0
  72.       autolt      dw         0
  73.       autolm      dw         0; Offset in PRM data area of auto log on MACRO
  74.       alias       db FON_ALIAS_MAXLEN Dup (0)
  75.       id          db FON_ID_MAXLEN Dup (0)
  76.       padding     db 4 Dup (0)
  77. EndS
  78. FON_SIZE = Size _fon
  79.  
  80. ;;  Translation of the baudrate value to a table look-up value
  81. ;; can be understood by viewing the SIO.INC file.
  82.  
  83. Struc _fondir_data
  84.       recordcnt dw ?
  85.       recordnow dw ?
  86.       recordtop dw ?
  87.       recordbot dw ?
  88.       scrnfull  db ?
  89.       fillbyte  db ?; byte variable for filling strings with
  90.       dialquemode db ?
  91.       lastiypos  db ?
  92.       verid      dw ?; crc 16 of a 7 byte string 'AceComm',0
  93.       ; 14 bytes above
  94.          db 12 Dup (?)
  95.       padding    db 230 Dup (?)
  96. EndS _fondir_data
  97. FONDIR_DATA_SIZE = Size _fondir_data
  98.  
  99.